convert 1D array into 2D array solution

visit shbcf.ru